package com.jufa_3.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jufa_3.dto.ComboCostInfo;
import com.jufa_3.dto.SelectInfo;
import com.jufa_3.entity.ComboOrder;

public interface ComboOrderService extends IService<ComboOrder> {

    /**
     * 套餐扣费
     *
     * @param sif
     * @return
     */
    Integer debit(SelectInfo sif);

    /**
     * 用户订购的套餐信息
     *
     * @param openId
     * @return
     */
    ComboCostInfo getUserCombos(String openId, boolean isGtZero);

    /**
     * 用户是否订购399套餐
     *
     * @param openId
     * @return
     */
    boolean without399Combo(String openId);

}
